package com.framwork.start.core;


import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ysw
 * @create 2019-10-14 17:38
 * @descreption
 **/
@Configuration
@ConditionalOnClass(SpringApplicationContext.class)
public class CoreAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean(SpringApplicationContext.class)
    public SpringApplicationContext springApplicationContext() {
        return new SpringApplicationContext();
    }
}